package com.google.rui.demos.upload;

import android.os.Parcel;
import android.os.Parcelable;

public class UploadModel implements Parcelable{
	
	String title;      
	String time;  
	String contactId;  
	String lonlat;   
	String photoName;  
	String userName; 
	String projectId;   
	String photoTumb;      
	String uploadString; 
		
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public String getContactId() {
		return contactId;
	}
	public void setContactId(String contactId) {
		this.contactId = contactId;
	}
	public String getLonlat() {
		return lonlat;
	}
	public void setLonlat(String lonlat) {
		this.lonlat = lonlat;
	}
	public String getPhotoName() {
		return photoName;
	}
	public void setPhotoName(String photoName) {
		this.photoName = photoName;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getProjectId() {
		return projectId;
	}
	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}
	public String getPhotoTumb() {
		return photoTumb;
	}
	public void setPhotoTumb(String photoTumb) {
		this.photoTumb = photoTumb;
	}
	public String getUploadString() {
		return uploadString;
	}
	public void setUploadString(String uploadString) {
		this.uploadString = uploadString;
	}
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeString(uploadString);
		dest.writeString(photoName);
		dest.writeString(userName);
		dest.writeString(time);
		dest.writeString(title);
		dest.writeString(photoTumb);
		dest.writeString(contactId);
		dest.writeString(lonlat);
		dest.writeString(projectId);
	
		
	}
	public static final Parcelable.Creator CREATOR = new Creator() {
		@Override
		public Object createFromParcel(Parcel source) {

			UploadModel detailDate=new UploadModel();
			 //获得	ID	USERID NAME SEX	BIRTHDAY EMAIL MOBILE   HOMEADDRESS HOMEPOSTCODE HOMETEL	MSN QQ WEBSITE	
			detailDate.uploadString=source.readString();
			detailDate.photoName=source.readString();
			detailDate.userName=source.readString();
			detailDate.time=source.readString();
			detailDate.title=source.readString();
			detailDate.photoTumb=source.readString();
			detailDate.contactId=source.readString();
			detailDate.lonlat=source.readString();
			detailDate.projectId=source.readString();
		
			return detailDate;
		}

		@Override
		public Object[] newArray(int size) {
			// TODO Auto-generated method stub
			return new UploadModel[size];
		}

	};
	
}
